<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateWechatUserFavorsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('wechat_user_favors', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('store_id')->default(0);
			$table->string('product_ids')->default('[]')->comment('商品ids 数组');
			$table->integer('wechat_user_id')->default(0)->comment('登录之后绑定，保存用户id');
			$table->string('try_on_photo')->nullable()->comment('试戴照片');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('wechat_user_favors');
	}

}
